widget: Add more sophisticated detection of rendering method
authorBenjamin Otte <otte@redhat.com>
Sun, 13 Nov 2016 15:37:35 +0000 (16:37 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 15 Nov 2016 16:48:45 +0000 (17:48 +0100)
commit2cd9e5170e0da6b9c8d92fab21c7b8541edb2738
tree131f45f919b7c9781ce8c85cbd8a17a9d390a92d
parent79d2d0e40d35c2b22b4e9005486af6823b09c0e0
widget: Add more sophisticated detection of rendering method

We now look at which of get_render_mode, draw or snapshot vfuncs is the
latest to have been overwritten in the class tree and then use that one.

This allows GtkContainerClass and GtkBinClass to override all of them
for without screwing things up.
gtk/gtkwidget.c